const path = require('path');

const isPkg = typeof process.pkg !== 'undefined';
const basePath = isPkg ? path.dirname(process.execPath) : path.join(__dirname, '../..');

module.exports = {
  PORT: process.env.PORT || 3000,
  LOG_FILE: path.join(basePath, 'data', 'chat.log'),
  UPLOAD_DIR: path.join(basePath, 'data', 'uploads'),
  isPkg,
  MAX_HISTORY: 100
};